.TH std::chrono::month 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::month \- std::chrono::month

.SH Synopsis
   Defined in header <chrono>
   class month;                                       \fI(since C++20)\fP
   inline constexpr std::chrono::month January{1};    \fI(since C++20)\fP
   inline constexpr std::chrono::month February{2};   \fI(since C++20)\fP
   inline constexpr std::chrono::month March{3};      \fI(since C++20)\fP
   inline constexpr std::chrono::month April{4};      \fI(since C++20)\fP
   inline constexpr std::chrono::month May{5};        \fI(since C++20)\fP
   inline constexpr std::chrono::month June{6};       \fI(since C++20)\fP
   inline constexpr std::chrono::month July{7};       \fI(since C++20)\fP
   inline constexpr std::chrono::month August{8};     \fI(since C++20)\fP
   inline constexpr std::chrono::month September{9};  \fI(since C++20)\fP
   inline constexpr std::chrono::month October{10};   \fI(since C++20)\fP
   inline constexpr std::chrono::month November{11};  \fI(since C++20)\fP
   inline constexpr std::chrono::month December{12};  \fI(since C++20)\fP

   The class month represents a month in a year. Its normal range is [1, 12], but it
   may hold any number in [0, 255]. Twelve named constants are predefined in the
   std::chrono namespace for the twelve months of the year.

   month is a TriviallyCopyable StandardLayoutType.

.SH Member functions

   constructor       constructs a month
                     \fI(public member function)\fP
   operator++
   operator++(int)   increments or decrements the month
   operator--        \fI(public member function)\fP
   operator--(int)
   operator+=        adds or subtracts a number of months
   operator-=        \fI(public member function)\fP
   operator unsigned retrieves the stored month value
                     \fI(public member function)\fP
   ok                checks if the stored month value is in the normal range
                     \fI(public member function)\fP

   Nonmember functions

   operator==  compares two month values
   operator<=> \fI(function)\fP
   (C++20)
   operator+   performs arithmetic on months
   operator-   \fI(function)\fP
   (C++20)
   operator<<  outputs a month into a stream
   (C++20)     \fI(function template)\fP
   from_stream parses a month from a stream according to the provided format
   (C++20)     \fI(function template)\fP

.SH Helper classes

   std::formatter<std::chrono::month> formatting support for month
   (C++20)                            \fI(class template specialization)\fP
   std::hash<std::chrono::month>      hash support for std::chrono::month
   (C++26)                            \fI(class template specialization)\fP
